package com.jiantong.user.impl.service;

import com.jiantong.user.impl.dao.ContactDao;
import com.jiantong.user.impl.dao.RoleModlueDao;
import com.jiantong.user.model.RoleModlue;
import com.jiantong.user.service.RoleModlueReadService;
import io.terminus.boot.rpc.common.annotation.RpcProvider;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by ThinkPad on 2017/8/10.
 */
@Slf4j
@Service
@RpcProvider
public class RoleModlueReadServiceImpl implements RoleModlueReadService {

    private final RoleModlueDao roleModlueDao;

    @Autowired
    public RoleModlueReadServiceImpl(RoleModlueDao roleModlueDao) {
        this.roleModlueDao = roleModlueDao;
    }
    @Override
    public List<Long> selectModuleByRoleId(Long roleId) {
        return roleModlueDao.selectModuleByRoleId(roleId);
    }

    @Override
    public List<RoleModlue> finkeyword(Map map) {
        return roleModlueDao.list(map);
    }


}
